<div class="">
	<div class="button"><input type="button" id="savePayments" value="Save"></div>
	
	<div>
		<table class="admintable">
			<tr>
				<th>Name</th>
				<th>Date & time</th>
				<th>Doctor</th>
				<th>Amount</th>
			</tr>
			<% _.each(appointments, function(result){ %>
				<tr>
					<td><%= result.get("patient").name%></td>
					<td><%= new Date(result.get("dateOfAppointment")).format("dd mmm yyyy")%> <%= fomartTimeShow( result.get("appointmentTime")) %></td>
					<td>Dr. <%= result.get("doctor").name%></td>
					<td><input class="paymentamount" type="text" id="<%= result.get('id')%>" value="<%= result.get('amountPaid')%>"/></td>
					
				</tr>
	
			<% }); %>
			
		</table>
	</div>
</div>
